﻿using System;

namespace DiveDeeper.VsxLibrary.Core
{
  // ==================================================================================
  /// <summary>
  /// This attribute can set the initial caption of a tool window pane.
  /// </summary>
  // ==================================================================================
  [AttributeUsage(AttributeTargets.Class)]
  public sealed class InitialCaptionAttribute: StringAttribute
  {
    public InitialCaptionAttribute(string value) : base(value)
    {
    }
  }

  // ==================================================================================
  /// <summary>
  /// This attribute can set the bitmap resource information of a tool window pane.
  /// </summary>
  // ==================================================================================
  [AttributeUsage(AttributeTargets.Class)]
  public sealed class BitmapResourceIdAttribute: Attribute
  {
    private readonly int _ResourceId;
    private readonly int _BitmapIndex;

    public BitmapResourceIdAttribute(int resourceId):
      this (resourceId, 1)
    {
    }

    public BitmapResourceIdAttribute(int resourceId, int bitmapIndex)
    {
      _ResourceId = resourceId;
      _BitmapIndex = bitmapIndex;
    }

    public int ResourceId
    {
      get { return _ResourceId; }
    }

    public int BitmapIndex
    {
      get { return _BitmapIndex; }
    }
  }
}
